grammar MyRule;

//myRuleInit  :  '{' value (','value)* '}';
//
//value :  INT | myRuleInit;

myRuleInit  :  value ('+'value);

value :  INT | myRuleInit;


//myAddOrSubRule: myAddOrSubRule('+'|'-')myAddOrSubRule)|INT ;


INT : [0-9]+;

WS: [\t\r\n]+ -> skip;